package com.fpx.metadata.bean.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.*;

@Data
@Table(name = "impact")
@ApiModel(value = "影响信息")
public class Impact {
    @Id
    @KeySql(useGeneratedKeys = true)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 数据源ID
     */
    @Column(name = "data_source_id")
    @ApiModelProperty(value = "数据源ID")
    private Long dataSourceId;

    /**
     * ETL流程ID
     */
    @Column(name = "process_id")
    @ApiModelProperty(value = "ETL流程ID")
    private Long processId;

    /**
     * 数据源名称
     */
    @Column(name = "data_source_name")
    @ApiModelProperty(value = "数据源名称")
    private String dataSourceName;

    /**
     * ETL流程名称
     */
    @Column(name = "process_name")
    @ApiModelProperty(value = "ETL流程名称")
    private String processName;

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取数据源ID
     *
     * @return data_source_id - 数据源ID
     */
    public Long getDataSourceId() {
        return dataSourceId;
    }

    /**
     * 设置数据源ID
     *
     * @param dataSourceId 数据源ID
     */
    public void setDataSourceId(Long dataSourceId) {
        this.dataSourceId = dataSourceId;
    }

    /**
     * 获取ETL流程ID
     *
     * @return process_id - ETL流程ID
     */
    public Long getProcessId() {
        return processId;
    }

    /**
     * 设置ETL流程ID
     *
     * @param processId ETL流程ID
     */
    public void setProcessId(Long processId) {
        this.processId = processId;
    }

    /**
     * 获取数据源名称
     *
     * @return data_source_name - 数据源名称
     */
    public String getDataSourceName() {
        return dataSourceName;
    }

    /**
     * 设置数据源名称
     *
     * @param dataSourceName 数据源名称
     */
    public void setDataSourceName(String dataSourceName) {
        this.dataSourceName = dataSourceName;
    }

    /**
     * 获取ETL流程名称
     *
     * @return process_name - ETL流程名称
     */
    public String getProcessName() {
        return processName;
    }

    /**
     * 设置ETL流程名称
     *
     * @param processName ETL流程名称
     */
    public void setProcessName(String processName) {
        this.processName = processName;
    }
}